﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace ElectronicCommerce.Framework.Ioc.Interceptor.Configuration
{
    /// <summary>
    /// Service Information
    /// </summary>
    public class ServiceInfo
    {
        [XmlAttribute("type")]
        public string MyType
        {
            get;
            set;
        }

        [XmlIgnore]
        public Type ServiceType
        {
            get
            {
                return Type.GetType(MyType);
            }
        }

        [XmlElement("Method", IsNullable = true)]
        public List<MethodInfo> Methods { get; set; }
    }
}
